| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRSetBackBufferPrefs function to set the resolution, pixel format, and size of the back buffer maintained internally by QuickTime VR for caching a panoramic image in a particular pixel format.
OSErr QTVRSetBackBufferPrefs (
QTVRInstance qtvr,
UInt16 resolution,
UInt32 cachePixelFormat,
SInt16 cacheSize);
The QTVRSetBackBufferPrefs function sets the resolution, pixel format, and size of the panorama back buffer for the movie specified by the qtvr parameter to the values specified by the resolution , cachePixelFormat , and cacheSize parameters. You can specify a resolution that isn't contained in the movie file; if you do so, QuickTime VR takes the highest resolution image in the file and reduces it to fit into the specified buffer size.
If you specify an unsupported pixel format, the QTVRSetBackBufferPrefs function may return an error. See "Pixel Formats" for more information.
Use QTVRGetAvailableResolutions [link] to determine which resolutions are supported by a node. Use QTVRGetBackBufferMemInfo [link] to determine the memory requirements for the preferred settings.
| Previous | Chapter contents | Chapter top | Section top | Next |